package com.open.capacity.reptile.controller;

import com.open.capacity.common.config.ServerConfig;
import com.open.capacity.commons.PageResult;
import com.open.capacity.commons.Result;
import com.open.capacity.reptile.entity.GdszczMaEleAcco;
import com.open.capacity.reptile.service.GdszczMaEleAccoService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("kjkms")
@Api(tags = "会计科目")
public class GdszczMaEleAccoController {

    @Autowired
    private GdszczMaEleAccoService maEleAccoService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    public PageResult list(@RequestParam Map<String, Object> params) {
        PageResult result = maEleAccoService.pageAll(params);
        return result;
    }
}
